package net.tuandn.training.model;

public class City {
	private Integer id;
	private String name;
	private int population;

	/**
	 * for deserializing using flexjson. This no argument constructor doesn't
	 * have to be public
	 */
	protected City() {
	}

	public City(Integer id, String name, int population) {
		super();
		this.id = id;
		this.name = name;
		this.population = population;
	}

	public boolean isSpecial() {
		return (population > 4000);
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPopulation() {
		return population;
	}

	public void setPopulation(int population) {
		this.population = population;
	}
}
